package com.yzl.frelink.entities.chart;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

@Data
public class StateTree {
    private List<StateTreeNode> children;
    
    public StateTree() {
        this.children = new ArrayList<>();
    }

    public void addChild(StateTreeNode child) {
        this.children.add(child);
    }

    public boolean hasChild(StateTreeNode child) {
        return this.children.contains(child);
    }
}
